package ch.usi.inf.pf2.editor;

import ch.usi.inf.pf2.Sheet;

public class InsertColumnAction extends Action
{
    public InsertColumnAction (Sheet s, int index)
    {
	   super(s, -1, index);
    }
    
    @Override
    public void evaluate()
    {
	   sheet.insertColumnAt(this.getColumnIndex());
    }

    @Override
    public void restore()
    {
	   sheet.deleteColumnAt(this.getColumnIndex());
    }

}
